import 'package:flutter/material.dart';

class FortunBagDatils extends StatefulWidget {
  @override
  _FortunBagDatilsState createState() => _FortunBagDatilsState();
}

class _FortunBagDatilsState extends State<FortunBagDatils> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: new AppBar(
      centerTitle: true,
      backgroundColor: Colors.white,
      iconTheme: IconThemeData(
          color: Colors.black
      ),
      title: new Text(
        '领取记录',
        style: new TextStyle(color: Colors.black),
      ),
    ),
//      body: new Container(
//          margin: EdgeInsets.fromLTRB(150.0, 250.0, 150.0, 0.0),
//          child: new Column(
//            children: <Widget>[
//              Image.asset('images/no_data.png' ,width: 80.0,height: 80.0,),
//              Text('暂无数据'),
//
//            ],
//          )
//      ),
    body: Container(
      margin: EdgeInsets.all(5.0),
      child: Column(
        children: <Widget>[
          _getitem(context),
          _getitem(context),
          _getitem(context),
        ],
      ),
    ),
    );

  }

  Widget _getitem(BuildContext context){
    return new Stack(
       children: <Widget>[
         Image.asset('images/img_bag_listbj.png'),
         new Positioned(
             left: 8.0,
             right: 8.0,
             top: 5.0,
             child:  Image.asset('images/img_recordbag_bj.png'),

         ),
         new Positioned(
           left: 20.0,
           right: 20.0,
           top: 15.0,
           child:  Row(
               children: <Widget>[
                 Expanded(child: new Column(
                   children: <Widget>[
                     Row(
                       children: <Widget>[
                         Text('451545',style: TextStyle(color: Colors.red,fontSize: 18.0),),
                         new Container(
                           padding: EdgeInsets.fromLTRB(5.0, 0.0, 0.0, 0.0),
                           child: Text('BSC',style: TextStyle(fontSize: 12.0,color: Colors.white),),
                         )

                       ],
                     ),
                     Row(
                       children: <Widget>[
                         Text('或',style: TextStyle(fontSize: 12.0,color: Colors.white),),
                         new Container(
                           padding: EdgeInsets.fromLTRB(5.0, 0.0, 5.0, 0.0),
                           child: Text('4545',style: TextStyle(color: Colors.red,fontSize: 18.0),),
                         ),

                         Text('BSC',style: TextStyle(fontSize: 12.0,color: Colors.white),)
                       ],
                     ),
                   ],
                 ),
                 flex: 1,),

                 Image.asset('images/img_fd.png' , width:  80.0, height: 70.0,)
               ],

           ),
         ),
         new Positioned(
             left: 20.0,
             right: 20.0,
             top: 110.0,
             child: Text('2019-01-14  16:02'))

       ],
    );
  }
}
